package org.example.day20240903文件操作;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Main1 {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("world.txt",true);
        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
        bufferedWriter.write("world\n");
        bufferedWriter.close();
        fileWriter.close();
    }
}
